<div id="recipecategory-index">

        <div class="search">
                <a class="adds" href="__APP__/RecipeCategory/add">添加分类</a>
                <form action="__APP__/RecipeCategory/index" method="post" class="search">
                    关键字 <input type="text" name="key" /> 按
                    <select name="search">
                        <option value="2">菜谱分类名</option>
                        <option value="3">菜谱分类别名</option>
                    </select>
                    <empty name="list">
                        <input type="submit" value="搜索" disabled="disabled" />
                        <else />
                        <input type="submit" value="搜索" />
                    </empty>
                </form>

        </div>

        <form action="__APP__/RecipeCategory/del" method="post" name="delete" class="delete">

            <table>
                <thead>
                    <tr>
                        <th style="width:200px;">菜谱分类名称</th>
                        <th style="width:150px;">菜谱分类别名</th>
                        <th style="width:100px;">菜谱数</th>
                        <th style="width:50px;">排序</th>
                        <th style="width:100px;">是否发布</th>
                        <th>描述</th>
                        <th class="action" style="width:50px;"><input class="allselect" type="button" value="全选" /></th>
                    </tr>
                </thead>
               <tbody>
                   <empty name="list">
                       <tr><td colspan="7" style="height:50px;">暂无数据</td></tr>
                       <else/>
                       <volist name="list" id="vo">
                           <tr>
                               <td><a href="__APP__/RecipeCategory/edit/id/<{$vo.id}>" title="修改该菜谱分类信息"><{$vo.name}></a></td>
                               <td><{$vo.alias}></td>
                               <td><{$vo['recipearticle']|count}></td>
                               <td><{$vo.sort}></td>
                               <eq name="vo.publish" value="1">
                                        <td>已发布</td>
                                   <else/>
                                        <td>未发布</td>
                               </eq>
                               <gt name="vo.description|mb_strlen='utf-8'" value="30">
                                   <td title="<{$vo.description}>"><{$vo.description|mb_substr=0,30,"utf-8"}>...</td>
                                   <else/>
                                   <td><{$vo.description}></td>
                               </gt>
                               <td><input type="checkbox" name="actions[]" value="<{$vo.id}>" /></td>
                           </tr>
                       </volist>
                   </empty>
               </tbody>
                <tfoot>
                    <empty name="show">
                        <tr><td class="fpage" colspan="7">暂无数据</td></tr>
                        <else/>
                        <tr><td class="fpage" colspan="6"><{$show}></td><td><input class="buttondel" type="button" value="删除" /></td></tr>
                    </empty>
                </tfoot>
            </table>
        </form>
</div>
<script type="text/javascript" src="../Public/js/recipecategory.js"></script>